package com.oocl.euc.core.requestform.model;

import com.oocl.euc.audit.AuditEntity;
import com.oocl.euc.core.attachment.model.Attachment;

import javax.persistence.*;

@Entity
@Table(name = "PCRS_REQUEST_POSTMORTEM_ATTACH")
@SequenceGenerator(name = "SEQUENCE_GENERATOR", sequenceName = "POSTMORTEM_ATTACH_SEQUENCE", allocationSize = 1)
public class RequestPostmortemAttach extends AuditEntity {


    @OneToOne(cascade = CascadeType.REFRESH, fetch = FetchType.EAGER)
    @JoinColumn(name = "ATTACHMENT_ID", referencedColumnName = "ID")
    private Attachment attachment;

    @Column(name = "DESCRIPTION")
    private String description;
    @Column(name = "REF_NO")
    private String refNo;
    @Column(name = "STATUS")
    private Integer status;

    public Attachment getAttachment() {
        return attachment;
    }

    public void setAttachment(Attachment attachment) {
        this.attachment = attachment;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRefNo() {
        return refNo;
    }

    public void setRefNo(String refNo) {
        this.refNo = refNo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
    